<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>初识Vue</title>
    <!-- 引入Vue -->
    <script src="../js/vue.js"></script>
</head>
<body>

    <!-- ===================== 插值语法（双大括号表达式）========================== -->
    <div id="app">
        {{message}}
    </div>

    <script>
        var app = new Vue({
            el:'#app',
            data:{
                message:'Hello Vue'
            }
        })
    </script>

    <!-- ===================== 指令语法（以 v- 开头） ========================== -->
    <div id="app2">
        <span v-bind:title="message">
            鼠标悬停几秒查看此处动态绑定的提示信息！！！
        </span>
    </div>

    <script>
        var app2  = new Vue({
            el:'#app2',
            data:{
                message:"页面加载于" + new Date().toLocaleString(),
            }
        })
    </script>
    
</body>
</html>